package com.example.shixi_a.myapplication.login;

import android.content.Context;

import com.example.shixi_a.myapplication.base.BasePresenter;
import com.example.shixi_a.myapplication.base.BaseView;
import com.example.shixi_a.myapplication.bean.Vathome;

/**
 * Created by Shixi-A on 2017/6/1.
 */

public interface LoginContract {

    interface Presenter extends BasePresenter {
        // 登录
        void login(Context context, String name, String password, String vcode);

        // 检查用户名是否正确
        void checkName(Context context, String name);
        // 获取验证码
        void getVcode(Context context, String name);

    }


    interface View extends BaseView<Presenter> {
        // 提示框
        void showError(String msg);

        // 缓存token
        void setToken(String token);

        // 登录成功提示
        void showSucceed();

        // 缓存token
        void setToken2(String token);

        // 缓存用户信息
        void setUsername();

        void setVathome(Vathome vathome);
    }


}

